Optimal. Leaf size=121 \[ -\frac {a (A b-a B) (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 b^3}+\frac {(A b-2 a B) (a+b x)^4 \sqrt {a^2+2 a b x+b^2 x^2}}{5 b^3}+\frac {B (a+b x)^5 \sqrt {a^2+2 a b x+b^2 x^2}}{6 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {784, 77}
\begin {gather*} \frac {\sqrt {a^2+2 a b x+b^2 x^2} (a+b x)^4 (A b-2 a B)}{5 b^3}-\frac {a \sqrt {a^2+2 a b x+b^2 x^2} (a+b x)^3 (A b-a B)}{4 b^3}+\frac {B \sqrt {a^2+2 a b x+b^2 x^2} (a+b x)^5}{6 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 784
Rubi steps
\begin {align*} \int x (A+B x) \left (a^2+2 a b x+b^2 x^2\right )^{3/2} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int x \left (a b+b^2 x\right )^3 (A+B x) \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (\frac {a (-A b+a B) \left (a b+b^2 x\right )^3}{b^2}+\frac {(A b-2 a B) \left (a b+b^2 x\right )^4}{b^3}+\frac {B \left (a b+b^2 x\right )^5}{b^4}\right ) \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=-\frac {a (A b-a B) (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 b^3}+\frac {(A b-2 a B) (a+b x)^4 \sqrt {a^2+2 a b x+b^2 x^2}}{5 b^3}+\frac {B (a+b x)^5 \sqrt {a^2+2 a b x+b^2 x^2}}{6 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 87, normalized size = 0.72 \begin {gather*} \frac {x^2 \sqrt {(a+b x)^2} \left (10 a^3 (3 A+2 B x)+15 a^2 b x (4 A+3 B x)+9 a b^2 x^2 (5 A+4 B x)+2 b^3 x^3 (6 A+5 B x)\right )}{60 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.66, size = 92, normalized size = 0.76
method | result | size |
gosper | \(\frac {x^{2} \left (10 B \,b^{3} x^{4}+12 A \,b^{3} x^{3}+36 B a \,b^{2} x^{3}+45 A a \,b^{2} x^{2}+45 a^{2} b B \,x^{2}+60 A \,a^{2} b x +20 B \,a^{3} x +30 A \,a^{3}\right ) \left (\left (b x +a \right )^{2}\right )^{\frac {3}{2}}}{60 \left (b x +a \right )^{3}}\) | \(92\) |
default | \(\frac {x^{2} \left (10 B \,b^{3} x^{4}+12 A \,b^{3} x^{3}+36 B a \,b^{2} x^{3}+45 A a \,b^{2} x^{2}+45 a^{2} b B \,x^{2}+60 A \,a^{2} b x +20 B \,a^{3} x +30 A \,a^{3}\right ) \left (\left (b x +a \right )^{2}\right )^{\frac {3}{2}}}{60 \left (b x +a \right )^{3}}\) | \(92\) |
risch | \(\frac {\sqrt {\left (b x +a \right )^{2}}\, b^{3} B \,x^{6}}{6 b x +6 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (A \,b^{3}+3 B a \,b^{2}\right ) x^{5}}{5 b x +5 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (3 A a \,b^{2}+3 B \,a^{2} b \right ) x^{4}}{4 b x +4 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (3 A \,a^{2} b +B \,a^{3}\right ) x^{3}}{3 b x +3 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, a^{3} A \,x^{2}}{2 b x +2 a}\) | \(156\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 183 vs.
\(2 (83) = 166\).
time = 0.28, size = 183, normalized size = 1.51 \begin {gather*} \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B a^{2} x}{4 \, b^{2}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A a x}{4 \, b} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B a^{3}}{4 \, b^{3}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A a^{2}}{4 \, b^{2}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B x}{6 \, b^{2}} - \frac {7 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B a}{30 \, b^{3}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} A}{5 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.43, size = 73, normalized size = 0.60 \begin {gather*} \frac {1}{6} \, B b^{3} x^{6} + \frac {1}{2} \, A a^{3} x^{2} + \frac {1}{5} \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{5} + \frac {3}{4} \, {\left (B a^{2} b + A a b^{2}\right )} x^{4} + \frac {1}{3} \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \left (A + B x\right ) \left (\left (a + b x\right )^{2}\right )^{\frac {3}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.40, size = 148, normalized size = 1.22 \begin {gather*} \frac {1}{6} \, B b^{3} x^{6} \mathrm {sgn}\left (b x + a\right ) + \frac {3}{5} \, B a b^{2} x^{5} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{5} \, A b^{3} x^{5} \mathrm {sgn}\left (b x + a\right ) + \frac {3}{4} \, B a^{2} b x^{4} \mathrm {sgn}\left (b x + a\right ) + \frac {3}{4} \, A a b^{2} x^{4} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{3} \, B a^{3} x^{3} \mathrm {sgn}\left (b x + a\right ) + A a^{2} b x^{3} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{2} \, A a^{3} x^{2} \mathrm {sgn}\left (b x + a\right ) + \frac {{\left (B a^{6} - 3 \, A a^{5} b\right )} \mathrm {sgn}\left (b x + a\right )}{60 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x\,\left (A+B\,x\right )\,{\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________